From: Giovanni Campagna Date: Mon, 1 Nov 2010 12:26:49 +0000 (+0100) Subject: PopupSliderMenuItem: connect to scroll-event on the whole actor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9578 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bff553e978218a7a7cd6a06487b47c5002537d9c;p=gnome-shell.git PopupSliderMenuItem: connect to scroll-event on the whole actor Connect to scroll-event on .actor, not ._slider, so you can scroll on the whole menu item. https://bugzilla.gnome.org/show_bug.cgi?id=633668 --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 51b2989d8..b6b2b8c2c 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -370,7 +370,7 @@ PopupSliderMenuItem.prototype = { this.addActor(this._slider, 0, -1); this._slider.connect('repaint', Lang.bind(this, this._sliderRepaint)); this._slider.connect('button-press-event', Lang.bind(this, this._startDragging)); - this._slider.connect('scroll-event', Lang.bind(this, this._onScrollEvent)); + this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent)); this._releaseId = this._motionId = 0; this._dragging = false;